package br.ufc.custom.Graph;

public class Edge {	
	
	private Vertex extremity1;
	private Vertex extremity2;
	private int weight;
	
	public Edge(Vertex extremity1, Vertex extremity2, int weight) {
		super();
		this.extremity1 = extremity1;
		this.extremity2 = extremity2;
		this.weight = weight;
	}
	
	public Vertex getExtremity1() {
		return extremity1;
	}

	public Vertex getExtremity2() {
		return extremity2;
	}

	public int getWeight() {
		return weight;
	}

}
